<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>Test get　CORS</h1>
    <script>
        /*
            http://localhost:3001/login
            协议    域名      端口
        */
        let xhr = new XMLHttpRequest()
        xhr.open('POST', 'http://localhost:3001/login', true)
        xhr.send()
        xhr.onload = function() {
            console.log(xhr.response)
        }
    </script>
</body>
</html>